Skip to content

Stage Workers.dev backend origin and enforce canonical authentication - #8

Merged
AppSolves merged 1 commit into
mainfrom
feat/workers-dev-origin
Nov 14, 2026
Merged

AppSolves merged 1 commit into
mainfrom
feat/workers-dev-origin

Conversation

@AppSolves

Copy link
Copy Markdown
Owner

Stage the hosted backend at https://codexbot.appsolves.workers.dev so machine clients can reach it without changing the appsolves.dev zone's Bot Fight Mode. Enable workers_dev, keep preview_urls false and preserve the existing custom domain, Worker identity, D1, secrets, compatibility configuration, cron triggers and disabled merge gate.

The CLI and generated callers default to the new URL; explicit self-hosted origins remain supported. Update the actual onboarding page commands/canonical link, README, manifest and installation values. Privileged routes including webhooks now reject noncanonical request origins with HTTP 421 and no redirect. Retained aliases serve only public landing/health; OIDC audiences, HMAC, actor/install binding and the credential guard remain strict. Keep the reusable/Worker trust pin exactly 4ed6688.

OAuth AAD and profile paths remain origin-specific: old ciphertext cannot be reused. docs/origin-migration.md gives the staged enable/health/flip sequence, manual GitHub App webhook/setup changes, provider revocation fallback if the old endpoint is challenged, fresh new-origin sign-in, caller coordination and secure rollback. No ciphertext rebinding, profile copying or dual-audience window is introduced. The source-only manifest cannot change registered App settings.

Validation passed on Node 24: npm run check (130 tests, typecheck, lint, build), npm run test:clean, actual workerd/D1, actionlint for repository and proposed consumer caller, final and stage-1 Wrangler dry-runs, secret scan (zero findings) and diff check. Tests cover CLI defaults/overrides/profile names, exact audience, HMAC, Origin/host rejection, old-ciphertext rejection and public onboarding. A read-only account check confirmed the existing appsolves subdomain with Workers.dev currently disabled. Node health returned 404 without a challenge while disabled; deployed transport/webhook/OIDC/provider success is not claimed.

Do not merge, deploy, change App settings/credentials or remove the custom route without explicit authorization. Coordinate the separate caller PR through normal protection. Keep reviews paused during cutover; real ping delivery, fresh credential-only diagnostic and OAuth connection remain operator release gates before a separately authorized advisory/no-merge review. No production settings, zone security, secrets or inference were changed by this PR.

@AppSolves
AppSolves merged commit 9a16ba1 into main Nov 14, 2026
4 checks passed
@AppSolves
AppSolves deleted the feat/workers-dev-origin branch November 14, 2026 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant